package com.hxzy.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.hxzy.common.easyexcel.conver.StatusConver;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@EqualsAndHashCode
public class DemoData {

    @ExcelProperty(value = "姓名",index = 0)
    private String string;

    @DateTimeFormat(value = "yyyy-MM-dd")
    @ExcelProperty(value="出生日期", index=2)
    private Date date;

    @ExcelProperty(value="身高",index = 1)
    private Double doubleData;

    @ExcelProperty(value = "状态",index = 3, converter = StatusConver.class)
    private Integer status;
}
